package com.zking.ssm.NH.service.impl;

import com.zking.ssm.NH.mapper.ThotelBrandTypeMapper;
import com.zking.ssm.NH.model.ThotelBrandType;
import com.zking.ssm.NH.service.IThotelBrandTypeService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IThotelBrandTypeServiceImpl implements IThotelBrandTypeService {

    @Autowired
    private ThotelBrandTypeMapper thotelBrandTypeMapper;


    @Override
    public int deleteByPrimaryKey(ThotelBrandType ttId) {
        return thotelBrandTypeMapper.deleteByPrimaryKey(ttId);
    }

    @Override
    public int insert(ThotelBrandType record) {
        return thotelBrandTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(ThotelBrandType record) {
        return thotelBrandTypeMapper.insertSelective(record);
    }

    @Override
    public ThotelBrandType selectByPrimaryKey(Long ttId) {
        return thotelBrandTypeMapper.selectByPrimaryKey(ttId);
    }

    @Override
    public int updateByPrimaryKeySelective(ThotelBrandType record) {
         return thotelBrandTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<ThotelBrandType> selectByPrimaryKeyCascode(Long ttId) {
        List<ThotelBrandType> bbb=thotelBrandTypeMapper.selectByPrimaryKeyCascode(ttId);
        return bbb;
    }

    @Override
    public int updateByPrimaryKey(ThotelBrandType record) {
        return thotelBrandTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ThotelBrandType> lista(ThotelBrandType record, PageBean pageBean) {
        List<ThotelBrandType> bbb=thotelBrandTypeMapper.lista(record);
        return bbb;
    }

    @Override
    public int deletepiliang(ThotelBrandType record) {
        return thotelBrandTypeMapper.deletepiliang(record);
    }
}
